import {RouteRecordRaw} from "vue-router";

const createRouters: Array<RouteRecordRaw> = [
    {
        path: '/index',
        name: 'index',
        meta: {
            title: '首页',
            keepAlive: true,
            requireAuth: false
        },
        component: () => import('@/view/blog/index.vue')
    },
    {
        path: '/add',
        name: 'add',
        meta: {
            title: '新增',
            keepAlive: true,
            requireAuth: false
        },
        component: () => import('@/view/blog/add.vue')
    },
    {
        path: '/update',
        name: 'update',
        meta: {
            title: '更新',
            keepAlive: true,
            requireAuth: false
        },
        component: () => import('@/view/blog/update.vue')
    },
]


export default createRouters;